﻿using System.ComponentModel.DataAnnotations;

namespace JuCheap.Core.Model
{
    /// <summary>
    /// 角色初始化模型
    /// </summary>
    public class RoleCreateRequestDto
    {
        /// <summary>
        /// 角色名称
        /// </summary>
        [Display(Name = "角色名称")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(20, ErrorMessage = "{0}长度不能超过{1}个字符")]
        public string Name { get; set; }

        /// <summary>
        /// 角色编码
        /// </summary>
        [Display(Name = "角色编码")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(50, ErrorMessage = "{0}长度不能超过{1}个字符")]
        public string Code { get; set; }

        /// <summary>
        /// 备注信息
        /// </summary>
        [Display(Name = "备注信息")]
        [MaxLength(100, ErrorMessage = "{0}长度不能超过{1}个字符")]
        public string Remark { get; set; }
    }
}
